// CRUD配置文件 - 包含所有模块的配置信息

// 社会经济学信息配置
export const socioeconomicConfig = {
  pageTitle: '社会经济学信息',
  searchPlaceholder: '患者姓名',
  emptyIcon: '📊',
  emptyText: '暂无社会经济学信息记录',
  addButtonText: '添加第一条',
  recordIcon: 'icon-user',
  
  // API配置
  listApi: '/health_records/socioeconomic/socioeconomicInfo/list',
  addApi: '/health_records/socioeconomic/socioeconomicInfo/add',
  editApi: '/health_records/socioeconomic/socioeconomicInfo/update',
  deleteApi: '/health_records/socioeconomic/socioeconomicInfo/delete',
  queryByIdApi: '/health_records/socioeconomic/socioeconomicInfo/queryById',
  
  // 路由配置
  addRoute: './add',
  editRoute: './edit',
  
  // 显示字段配置
  displayFields: ['liveAddr', 'workType', 'incomeLevel', 'mediType']
}

// 家庭医生配置
export const familyDoctorConfig = {
  pageTitle: '家庭医生',
  searchPlaceholder: '患者姓名',
  emptyIcon: '👨‍⚕️',
  emptyText: '暂无家庭医生记录',
  addButtonText: '添加第一条',
  recordIcon: 'icon-doctor',
  
  // API配置
  listApi: '/health_records/family_doctor/familyDoctorInfo/list',
  addApi: '/health_records/family_doctor/familyDoctorInfo/add',
  editApi: '/health_records/family_doctor/familyDoctorInfo/update',
  deleteApi: '/health_records/family_doctor/familyDoctorInfo/delete',
  queryByIdApi: '/health_records/family_doctor/familyDoctorInfo/queryById',
  
  // 路由配置
  addRoute: './add',
  editRoute: './edit',
  
  // 显示字段配置
  displayFields: ['doctorName', 'doctorTel']
}

// 人口学信息配置
export const demographicConfig = {
  pageTitle: '人口学信息',
  searchPlaceholder: '患者姓名',
  emptyIcon: '👤',
  emptyText: '暂无人口学信息记录',
  addButtonText: '添加第一条',
  recordIcon: 'icon-user',
  
  // API配置
  listApi: '/health_records/demographic/demographicInfo/list',
  addApi: '/health_records/demographic/demographicInfo/add',
  editApi: '/health_records/demographic/demographicInfo/update',
  deleteApi: '/health_records/demographic/demographicInfo/delete',
  queryByIdApi: '/health_records/demographic/demographicInfo/queryById',
  
  // 路由配置
  addRoute: './add',
  editRoute: './edit',
  
  // 显示字段配置
  displayFields: ['sex', 'birthdate', 'tel']
}

// 紧急联系人配置
export const emergencyContactConfig = {
  pageTitle: '紧急联系人',
  searchPlaceholder: '患者姓名',
  emptyIcon: '🚨',
  emptyText: '暂无紧急联系人记录',
  addButtonText: '添加第一条',
  recordIcon: 'icon-phone',
  
  // API配置
  listApi: '/health_records/emergency_contact/emergencyContactInfo/list',
  addApi: '/health_records/emergency_contact/emergencyContactInfo/add',
  editApi: '/emergency/emergencyContact/update',
  deleteApi: '/health_records/emergency_contact/emergencyContactInfo/delete',
  queryByIdApi: '/health_records/emergency_contact/emergencyContactInfo/queryById',
  
  // 路由配置
  addRoute: './add',
  editRoute: './edit',
  
  // 显示字段配置
  displayFields: ['contactName', 'contactTel', 'relationship']
}

// 监护人信息配置
export const guardianConfig = {
  pageTitle: '监护人信息',
  searchPlaceholder: '患者姓名',
  emptyIcon: '👨‍👩‍👧‍👦',
  emptyText: '暂无监护人信息记录',
  addButtonText: '添加第一条',
  recordIcon: 'icon-user',
  
  // API配置
  listApi: '/guardian/guardianInfo/list',
  addApi: '/guardian/guardianInfo/add',
  editApi: '/guardian/guardianInfo/update',
  deleteApi: '/guardian/guardianInfo/delete',
  queryByIdApi: '/guardian/guardianInfo/queryById',
  
  // 路由配置
  addRoute: './add',
  editRoute: './edit',
  
  // 显示字段配置
  displayFields: ['guardianName', 'guardianTel', 'relationship']
}

// 健康信息配置
export const healthConfig = {
  pageTitle: '健康信息',
  searchPlaceholder: '患者姓名',
  emptyIcon: '🏥',
  emptyText: '暂无健康信息记录',
  addButtonText: '添加第一条',
  recordIcon: 'icon-heart',
  
  // API配置
  listApi: '/health_records/health/healthInfo/list',
  addApi: '/health_records/health/healthInfo/add',
  editApi: '/health_records/health/healthInfo/update',
  deleteApi: '/health_records/health/healthInfo/delete',
  queryByIdApi: '/health_records/health/healthInfo/queryById',
  
  // 路由配置
  addRoute: './add',
  editRoute: './edit',
  
  // 显示字段配置
  displayFields: ['height', 'weight', 'bmi']
}

// 基础健康信息配置
export const healthExamConfig = {
  pageTitle: '基础健康信息',
  searchPlaceholder: '患者姓名',
  emptyIcon: '🔬',
  emptyText: '暂无基础健康信息记录',
  addButtonText: '添加第一条',
  recordIcon: 'icon-lab',
  
  // API配置
  listApi: '/health_records/health_exam/healthExamIndexInfo/list',
  addApi: '/health_records/health_exam/healthExamIndexInfo/add',
  editApi: '/health_records/health_exam/healthExamIndexInfo/update',
  deleteApi: '/health_records/health_exam/healthExamIndexInfo/delete',
  queryByIdApi: '/health_records/health_exam/healthExamIndexInfo/queryById',
  
  // 路由配置
  addRoute: './add',
  editRoute: './edit',
  
  // 显示字段配置
  displayFields: ['bloodPressure', 'heartRate', 'temperature']
}

// 生活习惯配置
export const healthLiveHabitsConfig = {
  pageTitle: '生活习惯',
  searchPlaceholder: '患者姓名',
  emptyIcon: '🏃‍♂️',
  emptyText: '暂无生活习惯记录',
  addButtonText: '添加第一条',
  recordIcon: 'icon-run',
  
  // API配置
  listApi: '/health_records/health_livehabits/healthLiveHabitsInfo/list',
  addApi: '/health_records/health_livehabits/healthLiveHabitsInfo/add',
  editApi: '/health_records/health_livehabits/healthLiveHabitsInfo/update',
  deleteApi: '/health_records/health_livehabits/healthLiveHabitsInfo/delete',
  queryByIdApi: '/health_records/health_livehabits/healthLiveHabitsInfo/queryById',
  
  // 路由配置
  addRoute: './add',
  editRoute: './edit',
  
  // 显示字段配置
  displayFields: ['smokeDsc', 'brinkDsc', 'eatDsc']
}

// 社会经济学信息配置
export const healthSocialConfig = {
  pageTitle: '社会经济学信息',
  searchPlaceholder: '患者姓名',
  emptyIcon: '💰',
  emptyText: '暂无社会经济学信息记录',
  addButtonText: '添加第一条',
  recordIcon: 'icon-money',
  
  // API配置
  listApi: '/health_records/health_social/healthSocialInfo/list',
  addApi: '/health_records/health_social/healthSocialInfo/add',
  editApi: '/health_records/health_social/healthSocialInfo/update',
  deleteApi: '/health_records/health_social/healthSocialInfo/delete',
  queryByIdApi: '/health_records/health_social/healthSocialInfo/queryById',
  
  // 路由配置
  addRoute: './add',
  editRoute: './edit',
  
  // 显示字段配置
  displayFields: ['workType', 'incomeLevel', 'mediType']
}

// 既往病史配置
export const medicalHistoryConfig = {
  pageTitle: '既往病史',
  searchPlaceholder: '患者姓名',
  emptyIcon: '📋',
  emptyText: '暂无既往病史记录',
  addButtonText: '添加第一条',
  recordIcon: 'icon-file',
  
  // API配置
  listApi: '/medical/medicalHistory/list',
  addApi: '/medical/medicalHistory/add',
  editApi: '/medical/medicalHistory/update',
  deleteApi: '/medical/medicalHistory/delete',
  queryByIdApi: '/medical/medicalHistory/queryById',
  
  // 路由配置
  addRoute: './add',
  editRoute: './edit',
  
  // 显示字段配置
  displayFields: ['diseaseName', 'diagnosisDate', 'treatmentStatus']
}

// 个人信息配置
export const personalConfig = {
  pageTitle: '个人信息',
  searchPlaceholder: '患者姓名',
  emptyIcon: '👤',
  emptyText: '暂无个人信息记录',
  addButtonText: '添加第一条',
  recordIcon: 'icon-user',
  
  // API配置
  listApi: '/health_records/personal/personalInfo/list',
  addApi: '/health_records/personal/personalInfo/add',
  editApi: '/health_records/personal/personalInfo/update',
  deleteApi: '/health_records/personal/personalInfo/delete',
  queryByIdApi: '/health_records/personal/personalInfo/queryById',
  
  // 路由配置
  addRoute: './add',
  editRoute: './edit',
  
  // 显示字段配置
  displayFields: ['tel', 'address', 'emergencyContact']
}

// 健康管理人配置
export const personalManagerConfig = {
  pageTitle: '健康管理人',
  searchPlaceholder: '患者姓名',
  emptyIcon: '👨‍⚕️',
  emptyText: '暂无健康管理人记录',
  addButtonText: '添加第一条',
  recordIcon: 'icon-doctor',
  
  // API配置
  listApi: '/health_records/personal_manager/personalManagerInfo/list',
  addApi: '/health_records/personal_manager/personalManagerInfo/add',
  editApi: '/health_records/personal_manager/personalManagerInfo/update',
  deleteApi: '/health_records/personal_manager/personalManagerInfo/delete',
  queryByIdApi: '/health_records/personal_manager/personalManagerInfo/queryById',
  
  // 路由配置
  addRoute: './add',
  editRoute: './edit',
  
  // 显示字段配置
  displayFields: ['managerName', 'managerTel', 'relationship']
}

// 个人详情配置
export const personalPersonDetailConfig = {
  pageTitle: '个人详情',
  searchPlaceholder: '患者姓名',
  emptyIcon: '📝',
  emptyText: '暂无个人详情记录',
  addButtonText: '添加第一条',
  recordIcon: 'icon-edit',
  
  // API配置
  listApi: '/health_records/personal_person_detail/personalPersonDetailInfo/list',
  addApi: '/health_records/personal_person_detail/personalPersonDetailInfo/add',
  editApi: '/health_records/personal_person_detail/personalPersonDetailInfo/update',
  deleteApi: '/health_records/personal_person_detail/personalPersonDetailInfo/delete',
  queryByIdApi: '/health_records/personal_person_detail/personalPersonDetailInfo/queryById',
  
  // 路由配置
  addRoute: './add',
  editRoute: './edit',
  
  // 显示字段配置
  displayFields: ['education', 'occupation', 'maritalStatus']
}

// 联系方式配置
export const personalPersonDetailContactConfig = {
  pageTitle: '联系方式',
  searchPlaceholder: '患者姓名',
  emptyIcon: '📞',
  emptyText: '暂无联系方式记录',
  addButtonText: '添加第一条',
  recordIcon: 'icon-phone',
  
  // API配置
  listApi: '/health_records/personal_person_detail_contact/personalPersonDetailContactInfo/list',
  addApi: '/health_records/personal_person_detail_contact/personalPersonDetailContactInfo/add',
  editApi: '/health_records/personal_person_detail_contact/personalPersonDetailContactInfo/update',
  deleteApi: '/health_records/personal_person_detail_contact/personalPersonDetailContactInfo/delete',
  queryByIdApi: '/health_records/personal_person_detail_contact/personalPersonDetailContactInfo/queryById',
  
  // 路由配置
  addRoute: './add',
  editRoute: './edit',
  
  // 显示字段配置
  displayFields: ['tel', 'email', 'address']
}

// 用户信息配置
export const userConfig = {
  pageTitle: '用户信息',
  searchPlaceholder: '患者姓名',
  emptyIcon: '👤',
  emptyText: '暂无用户信息记录',
  addButtonText: '添加第一条',
  recordIcon: 'icon-user',
  
  // API配置
  listApi: '/health_records/user/userInfo/list',
  addApi: '/health_records/user/userInfo/add',
  editApi: '/health_records/user/userInfo/update',
  deleteApi: '/health_records/user/userInfo/delete',
  queryByIdApi: '/health_records/user/userInfo/queryById',
  
  // 路由配置
  addRoute: './add',
  editRoute: './edit',
  
  // 显示字段配置
  displayFields: ['username', 'email', 'role']
}

// 体格检查配置
export const demographicBodyConfig = {
  pageTitle: '体格检查',
  searchPlaceholder: '患者姓名',
  emptyIcon: '🏥',
  emptyText: '暂无体格检查记录',
  addButtonText: '添加第一条',
  recordIcon: 'icon-heart',
  
  // API配置
  listApi: '/health_records/demographic_body/demographicBodyInfo/list',
  addApi: '/health_records/demographic_body/demographicBodyInfo/add',
  editApi: '/health_records/demographic_body/demographicBodyInfo/update',
  deleteApi: '/health_records/demographic_body/demographicBodyInfo/delete',
  queryByIdApi: '/health_records/demographic_body/demographicBodyInfo/queryById',
  
  // 路由配置
  addRoute: './add',
  editRoute: './edit',
  
  // 显示字段配置
  displayFields: ['height', 'weight', 'bmi', 'waistCircumference']
}

// 导出所有配置
export const crudConfigs = {
  socioeconomic: socioeconomicConfig,
  familyDoctor: familyDoctorConfig,
  demographic: demographicConfig,
  emergencyContact: emergencyContactConfig,
  guardian: guardianConfig,
  health: healthConfig,
  healthExam: healthExamConfig,
  healthLiveHabits: healthLiveHabitsConfig,
  healthSocial: healthSocialConfig,
  medicalHistory: medicalHistoryConfig,
  personal: personalConfig,
  personalManager: personalManagerConfig,
  personalPersonDetail: personalPersonDetailConfig,
  personalPersonDetailContact: personalPersonDetailContactConfig,
  user: userConfig,
  demographicBody: demographicBodyConfig
}
